var option2020Prj = {
    title: {
        text: '2020项目统计图'
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: { // 坐标轴指示器，坐标轴触发有效
            type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
        }
    },
    legend: {
        data: ['新增', '删除', '合计']
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    xAxis: [{
        axisLabel: {
            interval: 0,
            rotate: 40
        },
        type: 'category',
        data: ["XslabUiDemo", "XSAC", "XslabSocket", "xunshengyun", "sockets", "XsAsrUI", "XsNet", "XsMeetingSystemCmd", "SID_API", "xslab_cloud_front", "angleMap", "voiceprint"]
    }],
    yAxis: [{
        type: 'value'
    }],
    series: [{
            "name": "新增",
            "type": "bar",
            "stack": "all",
            "emphasis": {
                "focus": "series"
            },
            "data": [
                19023,
                6070,
                8158,
                5120,
                6962,
                3299,
                5339,
                2332,
                2115,
                4360,
                1628,
                1334
            ]
        },
        {
            "name": "删除",
            "type": "bar",
            "stack": "all",
            "emphasis": {
                "focus": "series"
            },
            "data": [
                9745,
                707,
                4191,
                1176,
                3792,
                203,
                3018,
                414,
                240,
                2975,
                325,
                61
            ]
        },
        {
            "name": "合计",
            "type": "bar",
            "stack": "all",
            "emphasis": {
                "focus": "series"
            },
            "data": [
                9278,
                5363,
                3967,
                3944,
                3170,
                3096,
                2321,
                1918,
                1875,
                1385,
                1303,
                1273
            ]
        }
    ]
};
var chartDom = document.getElementById('2020pj');
var myChart = echarts.init(chartDom, 'dark');
option2020Prj && myChart.setOption(option2020Prj);